textlinedisplaycache: short-circuit y_range invalidation
authorChristian Hergert <chergert@redhat.com>
Sun, 2 Aug 2020 23:35:50 +0000 (16:35 -0700)
committerChristian Hergert <chergert@redhat.com>
Sun, 2 Aug 2020 23:35:50 +0000 (16:35 -0700)
commit94d17a68093d623a07018a5279175cfcf56ec409
tree8075c1f1e86e0ad5bf72f977d74b098f3b20dd68
parent7fe7d5ab4ffa2d531ce2caa9ad780ef419b4d440
textlinedisplaycache: short-circuit y_range invalidation

If we have a y==-1 then we are generally invalidating the whole textview.
For this case, we can just discard the entire GtkTextLineDisplay cache.

Fixes #2975
gtk/gtktextlinedisplaycache.c